﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjetoFinal
{
    public class youLost
    {
        Texture2D lost, won;
        int counter;

        public void LoadContent(ContentManager content)
        {
            lost = content.Load<Texture2D>("youLost");
            won = content.Load<Texture2D>("youWon");
        }   

        public void Update(GameTime gameTime)
        {
            counter++;

            if(counter > 180)
                Manager.nowState = Manager.GameState.Menu;

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();

            if (MyGame.won == false)
            spriteBatch.Draw(lost, new Vector2(0, 0), Color.White);

            else
            spriteBatch.Draw(won, new Vector2(0, 0), Color.White);

            spriteBatch.End();
        }
    
    
    }
}
